﻿@{ Layout = "~/Views/Shared/_leftPanelLayout.cshtml";}
@section LeftTree
{
     
    @{
        Html.RenderPartial("DeptTreePartialView", new Webcar.Models.DeptTreeMode { Action = "List", Controller = "Report", ShowChild = false });
     }
}
<style type="text/css">
    .C2
    {
        text-align:right;
        width:60px;
        vertical-align:top;
    }
     .C1
    {
        text-align :left;
        vertical-align:top;
    }
     .C0
    {
        vertical-align:top;
        padding:5px 0px 5px 0px;
    }
</style>
@using (Ajax.BeginForm("ListPartialView", "Report", Html.ViewContext.RouteData.Values, new AjaxOptions
    {
        HttpMethod = "POST",
        UpdateTargetId = "list-car",
        InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace
    }))
    { 
        @UserQuery.CreateQuery(setting => {
       setting.QueryKey = QuerySettings.ReportList;
           setting.Columns.Add(new QueryColumn() { Field = "is_new", Name = "是否新汇报", DataType = TypeofQueryColumn.DropDownList, CallBackAction = Url.Action("QueryYesNo", "Common") });
           setting.Columns.Add(new QueryColumn() { Field = "man_name", Name = "上报人" });
           setting.Columns.Add(new QueryColumn() { Field = "ny", Name = "上报月份" });
           setting.Columns.Add(new QueryColumn() { Field = "content", Name = "内容" });
        })
}
<div id="list-car">
    @Html.Action("ListPartialView")
</div>
<hr />
<table>
    <tr>
        <td>
             @Html.DevExpress().Button(settings =>
            {
                settings.Name = "Button1";
                settings.Text = "增加情况汇报";
                settings.Width = 120;
                settings.ControlStyle.CssClass = "button1";
                settings.ClientSideEvents.Click = "function(s, e){ location.href='" + @Url.Action("Edit", "Report", new { ReturnUrl = Request.Url.OriginalString }) + "' }";
            }).GetHtml()
        </td>
        <td style="color:red">提示：点击每行数据前的箭头可以查看回复。</td>
    </tr>
</table>


